package com.cn.ccp.webservice.impl;

public class ScheduleTodayObj {
	private String scheduleType;
	private String courseName;
	private String number;
	
	public ScheduleTodayObj(String scheduleType,String courseName,String number){
		this.scheduleType = scheduleType;
		this.courseName = courseName;
		this.number = number;
	}
	
	public String getScheduleType() {
		return scheduleType;
	}
	public void setScheduleType(String scheduleType) {
		this.scheduleType = scheduleType;
	}
	public String getCourseName() {
		return courseName;
	}
	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((courseName == null) ? 0 : courseName.hashCode());
		result = prime * result
				+ ((scheduleType == null) ? 0 : scheduleType.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ScheduleTodayObj other = (ScheduleTodayObj) obj;
		if (courseName == null) {
			if (other.courseName != null)
				return false;
		} else if (!courseName.equals(other.courseName))
			return false;
		if (scheduleType == null) {
			if (other.scheduleType != null)
				return false;
		} else if (!scheduleType.equals(other.scheduleType))
			return false;
		return true;
	}
	
}
